class CreateStages < ActiveRecord::Migration
  def self.up
    create_table :stages do |t|
      t.integer :project_id
      t.string :name
      t.date :started_on,
        :ended_on
      t.string :pay_status, :default => 'paying'
      t.text :remark
      t.decimal :should_be_payed,
        :precision => 8,
        :scale => 2,
        :default => 0
      t.timestamps
    end
  end

  def self.down
    drop_table :stages
  end
end
